<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <li v-for="(item,index) in li">{{ item }}----{{ index }}</li>
        <li v-for="(item,index) in a">
            <span v-if="typeof item === 'object'">
                <span>{{ item.name }}</span>
                <span>{{ item.age }}</span>
            </span>
            <span v-else>{{ item }}</span>
        </li>
    </div>
</body>
<script src="./vue.js"></script>
<script>
    const { createApp, ref } = Vue
    createApp({
        setup() {

            let li = ref([3, 5, 1, 3])
            let a = ref([1, { name: "aa", age: 19 }, 10])
            return {
                li, a
            }
        }
    }).mount("#app")
</script>

</html>